package cn.edu.wynu;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Cat {
    String name = "薛定谔";
    Integer age = 200;

    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context
                = new ClassPathXmlApplicationContext("cats.xml");
        Cat xde = context.getBean(Cat.class);
        System.out.println(xde);
    }
}
